package com.bgs.exception.eg;

public class ExceptionDemo03 {

	public static void main(String[] args) {
		System.out.println("main::: " + fun1());
	}
	
	public static int fun1() {
		int a = 10;
		int b = 0;
		int iRet = 0;
		try {
			iRet = 11;
			int c = a / b;
			iRet = 111;
			System.out.println("try ---");
			return iRet;
		} catch (Exception e) {
			e.printStackTrace();
			iRet = 22;
			System.out.println("Exception ");
			return iRet;
		} finally {
			iRet = 33;
			System.out.println("finally ");
			return iRet;
		}
	}
	public static void fun2() {
		System.out.println("hello static fun2");
	}
}
